* ses.el: Use hash map for getting named cells coordinates.
authorVincent Belaïche <vincentb1@users.sourceforge.net>
Fri, 9 Nov 2012 05:48:05 +0000 (06:48 +0100)
committerVincent Belaïche <vincentb1@users.sourceforge.net>
Fri, 9 Nov 2012 05:48:05 +0000 (06:48 +0100)
commit9394e58832434eb9f5eaf513dbdf94649e4126cb
tree88ab39768e6b07d398de1865d7ac36adec61e08f
parentdaa84a03e1a35c9d86865a39f7e2a768a1f43873
* ses.el: Use hash map for getting named cells coordinates.
 symbol to coordinate mapping is made by symbol property
 `ses-cell'. This means that the same mapping is done for all SES
 sheets. That is good enough for cells with standard A1 names, but
 not for named cell. So a hash map is added for those
 latter.
 (defconst ses-localvars): added local variable ses--named-cell-hashmap
 (ses-sym-rowcol): Use hashmap for named cell.
 (ses-is-cell-sym-p): New defun.
 (ses-decode-cell-symbol): New defun.
 (ses-create-cell-variable): Add cell to hashmap when name is not A1-like.
 (ses-rename-cell): Check that cell new name is not already in
 spreadsheet with the use of ses-is-cell-sym-p
 (ses-rename-cell): Use hash map for named cells, but accept also
 renaming back to A1-like.
lisp/ChangeLog
lisp/ses.el